<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	template="/WEB-INF/tpl/page.xhtml">
	<ui:define name="page_title">
		<h:outputFormat value="#{msgs.titleBrowse}">
			<f:param value="#{browseBean.path}" />
		</h:outputFormat>
	</ui:define>
	<ui:define name="page_body">
		<f:metadata>
			<f:viewParam name="path" value="#{browseBean.path}"
				required="true" requiredMessage="#{msgs.errorParamPathMissing}" />
			<f:event type="preRenderView" listener="#{browseBean.preRenderView}" />
		</f:metadata>
		
		<h:messages />

		<h:dataTable value="#{browseBean.entries}" var="_entry">
			<h:column>
				<f:facet name="header">#{msgs.labelSize}</f:facet>
			</h:column>
			<h:column>
				<f:facet name="header">#{msgs.labelDate}</f:facet>
				#{_entry.datetime}
			</h:column>
			<h:column>
				<f:facet name="header">#{msgs.labelDirs}</f:facet>
			</h:column>
			<h:column>
				<f:facet name="header">#{msgs.labelFiles}</f:facet>
			</h:column>
			<h:column>
				<f:facet name="header">#{msgs.labelFlags}</f:facet>
			</h:column>
			<h:column>
				<f:facet name="header">#{msgs.labelName}</f:facet>
				#{_entry.name}
			</h:column>
		</h:dataTable>
		
		<h:link outcome="hosts?faces-redirect=true" value="#{msgs.linkReturnHosts}" />
		
	</ui:define>
	
</ui:composition>
